﻿using System;

namespace Matrix.MaKaYunShang.Model
{
    /// <summary>
    ///商品库表
    /// </summary>
    public class CommodityLib
    {
        #region 默认属性
        /// <summary>
        /// Id
        /// </summary>		
        public int Id { get; set; }
        /// <summary>
        /// 商品名
        /// </summary>		
        public string CommodityName { get; set; }
        /// <summary>
        /// 商品LOGO
        /// </summary>		
        public string HeadPic { get; set; }
        /// <summary>
        /// 建议零售价
        /// </summary>		
        public decimal SuggestedPrice { get; set; }
        /// <summary>
        /// 上限价格
        /// </summary>		
        public decimal CeilingPrice { get; set; }
        /// <summary>
        /// 下限价格
        /// </summary>		
        public decimal LowerPrice { get; set; }
        /// <summary>
        /// 品牌ID
        /// </summary>		
        public int BrandId { get; set; }
        /// <summary>
        /// 商品类别ID
        /// </summary>		
        public int CateId { get; set; }
        /// <summary>
        /// 商品售卖单位
        /// </summary>		
        public string Unit { get; set; }
        /// <summary>
        /// 商品规格
        /// </summary>		
        public string Spec { get; set; }
        /// <summary>
        /// 商品描述
        /// </summary>		
        public string Description { get; set; }
        /// <summary>
        /// HTML介绍
        /// </summary>		
        public string HtmlIntroduce { get; set; }
        /// <summary>
        /// 产地
        /// </summary>		
        public int ProducingAreaId { get; set; }
        /// <summary>
        /// 是否平台售卖商品
        /// </summary>		
        public bool IsLanmaSold { get; set; }
        /// <summary>
        /// 是否有赠品
        /// </summary>		
        public bool HasGiftCommodity { get; set; }
        /// <summary>
        /// 可选赠品数量
        /// </summary>		
        public int GiftCount { get; set; }
        /// <summary>
        /// 赠品结束时间
        /// </summary>		
        public DateTime GiftEndTime { get; set; }
        /// <summary>
        /// 是否为虚拟商品
        /// </summary>		
        public bool IsVirtual { get; set; }
        /// <summary>
        /// 是否为批量售卖
        /// </summary>		
        public bool IsBatchSale { get; set; }
        /// <summary>
        /// 批量售卖数量
        /// </summary>		
        public int QuantityOfBatchSale { get; set; }
        /// <summary>
        /// 批量售卖单例商品库ID
        /// </summary>		
        public int CommodityLibIdByBatch { get; set; }
        /// <summary>
        /// 商品销量
        /// </summary>		
        public int SalesVolume { get; set; }
        /// <summary>
        /// 显示顺序
        /// </summary>		
        public int DisplaySort { get; set; }
        /// <summary>
        /// 商品条形码
        /// </summary>		
        public string BarCode { get; set; }
        /// <summary>
        /// 商家提成佣金
        /// </summary>		
        public decimal ShopCommission { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>		
        public DateTime AddTime { get; set; }
        /// <summary>
        /// 支持的支付方式
        /// </summary>		
        public string SupportPayWay { get; set; }
        /// <summary>
        /// 是否支持立减
        /// </summary>		
        public bool IsSupportDiscount { get; set; }
        /// <summary>
        /// 是否为蓝剑自营商品
        /// </summary>		
        public bool IsLanJianCommodity { get; set; }
        /// <summary>
        /// 是否仅单独下单
        /// </summary>		
        public bool IsOnlySingle { get; set; }
        /// <summary>
        /// 是否总部发货
        /// </summary>		
        public bool IsHeadquartersSend { get; set; }
        /// <summary>
        /// 店铺是否可见该商品订单
        /// </summary>		
        public bool IsShopCanViewOrder { get; set; }
        /// <summary>
        /// 店铺是否可修改价格
        /// </summary>		
        public bool IsShopCanModifyPrice { get; set; }
        /// <summary>
        /// 是否已删除（True已删除，False未删除）
        /// </summary>		
        public bool IsDelete { get; set; }
        #endregion

        #region 扩展属性

        public AreaInfo AreaInfo { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }

        /// <summary>
        /// 商品品牌名
        /// </summary>
        public string BrandName { get; set; }

        /// <summary>
        /// 商品分类名
        /// </summary>
        public string CategoryName { get; set; }

        /// <summary>
        /// 产地名称
        /// </summary>
        public string ProducingAreaName { get; set; }

        /// <summary>
        /// 附加店铺商品ID
        /// </summary>
        public int ShopCommodityId { get; set; }

        /// <summary>
        /// 附加店铺商品卖价
        /// </summary>
        public decimal SoldPrice { get; set; }

        /// <summary>
        /// 批量售卖单例商品名称
        /// </summary>
        public string CommodityLibByBatchName { get; set; }

        /// <summary>
        /// 优惠劵id列表,
        /// </summary>
        public string CouponArr { get; set; }
        /// <summary>
        /// 优惠劵名称列表,
        /// </summary>
        public string CouponNmaeArr { get; set; }

        #endregion
    }
}